package com.practice.mybpapi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.practice.mybpapi.domain.dto.PageBase;
import com.practice.mybpapi.domain.dto.PageUserQuery;
import com.practice.mybpapi.domain.dto.QueryUserVo;
import com.practice.mybpapi.domain.dto.UserQuery;
import com.practice.mybpapi.domain.po.User;

import java.util.List;

public interface UserService extends IService<User> {
    void decrease(Long id, Integer money);

    List<QueryUserVo> queryUser(UserQuery query);

    QueryUserVo getUserAddress(Long id);

    List<QueryUserVo> batchGetUserAddress(List<Long> ids);

    PageBase<QueryUserVo> pagedQueryUser(PageUserQuery query);
}
